package form;

import java.util.ArrayList;

import form.WindowForm.comboSelect;

import shared.Pair;

public class SelectedItems
{
	Pair<String, ArrayList<String>> selectedBorn;
	Pair<String, ArrayList<String>> selectedUser;
	Pair<String, ArrayList<String>> selectedAge;
	Pair<String, ArrayList<String>> selectedCity;
	Pair<String, ArrayList<String>> selectedFamily;

	
	public SelectedItems()
	{
		selectedBorn = new Pair<String,ArrayList<String>>(WindowForm.comboSelect.friendBirthPlace.getCombo(), new ArrayList<String>() );
		selectedFamily = new Pair<String,ArrayList<String>>(WindowForm.comboSelect.familyRelationName.getCombo(), new ArrayList<String>() );
		selectedAge = new Pair<String,ArrayList<String>>(WindowForm.comboSelect.friendAge.getCombo(), new ArrayList<String>() );
		
		
	}
	
	public ArrayList<String> getSelectedBorn()
	{
		return selectedBorn.getValue();
	}
	
	public ArrayList<String> getSelectedUser()
	{
		return selectedUser.getValue();
	}
	
	public ArrayList<String> getSelectedAge()
	{
		return selectedAge.getValue();
	}
	
	public ArrayList<String> getSelectedCity()
	{
		return selectedCity.getValue();
	}

	public ArrayList<String> getSelectedFamily()
	{
		return selectedFamily.getValue();
	}
	

	/**
	 * 
	 * @param key
	 * @param value
	 * @return
	 */
	public Pair<String,ArrayList<String>> set(String key, ArrayList<String> value)
	{
		return new Pair<String,ArrayList<String>>(key,value);
	}
}